package cn.pku.eecs.ldn.activity;

import cn.pku.eecs.ldn.R;
import cn.pku.eecs.ldn.util.ImageUtil;
import cn.pku.eecs.ldn.view.gallery.GalleryView;
import android.app.Activity;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.os.Bundle;

public class TestZoomImageViewActivity extends Activity {

	GalleryView zoomImageView = null;
	ProgressDialog progressDialog = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_test_zoom_image_view);

		zoomImageView = (GalleryView) findViewById(R.id.zoomImageView);
		loadImage();
	}

	private void loadImage() {
		Bitmap bitmap1 = ImageUtil.loadBitmap(this, R.drawable.long_image);
		Bitmap bitmap2 = ImageUtil.loadBitmap(this, R.drawable.sky);
		Bitmap bitmap3 = ImageUtil.loadBitmap(this, R.drawable.naeun);
		Bitmap bitmap4 = ImageUtil.loadBitmap(this, R.drawable.sky);
		Bitmap bitmap5 = ImageUtil.loadBitmap(this, R.drawable.sky);
		Bitmap bitmap6 = ImageUtil.loadBitmap(this, R.drawable.sky);

		zoomImageView.setBitmaps(new Bitmap[] { bitmap1, bitmap2, bitmap3,
				bitmap4, bitmap5, bitmap6 });
	}
}